package app.domain.orderBook;

import java.util.LinkedList;
import java.util.List;

import app.domain.order.Order;


public abstract class OrderBook {

	protected List<Order> orderBook = new LinkedList<>();
	
	public abstract void add(Order order);
	
	public boolean remove(Order order) {
		return orderBook.remove(order);
	}
	
	public int size(){
		return orderBook.size();
	};
	
	public Order get(int i) {
		return orderBook.get(i);
	};
	
	public Order remove(int i) {
		return orderBook.remove(i);
	};
	
	public List<Order> getList() {
		return orderBook;
	}
	
}
